As stated earlier, a stable system will tend to have a relatively steady population over the course of time vs. an unstable population which results in the extinction of one or more of the populations.
Your challenge at this point is to turn the unlimited grass ecosystem into a stable system that allows for continuous generations of both wolves and sheep for at least 300 ticks.
The variable "grass?" must be unchecked.